org.eclipse.vtp.framework.interactions.core.configurations
Class MediaConfiguration

java.lang.Object
  extended by org.eclipse.vtp.framework.interactions.core.configurations.MediaConfiguration
All Implemented Interfaces:
IConfiguration, InteractionsConstants

public class MediaConfiguration
extends java.lang.Object
implements IConfiguration, InteractionsConstants

MediaConfiguration.

Author:
Lonnie Pryor

Field Summary
 
Fields inherited from interface org.eclipse.vtp.framework.interactions.core.configurations.InteractionsConstants
NAME_CHOICE, NAME_CHOICES, NAME_CONTENT_TYPE, NAME_DATA_NAME, NAME_DATA_REQUEST, NAME_FORMATTER, NAME_ID, NAME_INPUT, NAME_INPUT_ITEM, NAME_INPUT_NAME, NAME_INPUT_REQUEST, NAME_INTERACTION_TYPE, NAME_KEY, NAME_LANGUAGE, NAME_LOCALE, NAME_MEDIA, NAME_MEDIA_PROVIDER, NAME_MEDIA_PROVIDER_BINDING, NAME_META_DATA, NAME_META_DATA_ITEM, NAME_META_DATA_SET, NAME_NAME, NAME_OUTPUT, NAME_OUTPUT_ITEM, NAME_OUTPUT_MESSAGE, NAME_OUTPUT_NAME, NAME_PROPERTY, NAME_PROPERTY_ITEM, NAME_RESOURCE_MANAGER, NAME_SCRIPT, NAME_SCRIPTING_LANGUGAGE, NAME_SELECTION_REQUEST, NAME_SHARED_CONTENT, NAME_TRANSFER_MESSAGE, NAME_TYPE, NAME_VALUE, NAMESPACE_URI
 
Constructor Summary
MediaConfiguration(IContentFactory contentFactory, IInputGrammarFactory inputFactory)
          Creates a new MediaConfiguration.
 
Method Summary
 InputConfiguration getInputConfiguration(java.lang.String name)
          Returns the input configuration registered under the specified name or null if no such configuration is registered.
 java.lang.String[] getInputConfigurationNames()
          Returns the names of the currently registered input configurations.
 OutputConfiguration getOutputConfiguration(java.lang.String name)
          Returns the output configuration registered under the specified name or null if no such configuration is registered.
 java.lang.String[] getOutputConfigurationNames()
          Returns the names of the currently registered output configurations.
 PropertyConfiguration getPropertyConfiguration(java.lang.String name)
          Returns the property configuration registered under the specified name or null if no such configuration is registered.
 java.lang.String[] getPropertyConfigurationNames()
          Returns the names of the currently registered property configurations.
 void load(org.w3c.dom.Element configurationElement)
          Loads the configuration information from the specified XML element.
 void save(org.w3c.dom.Element configurationElement)
          Saves the configuration information into the supplied XML element.
 void setInputConfiguration(java.lang.String name, InputConfiguration configuration)
          Sets the input configuration registered under the specified name.
 void setOutputConfiguration(java.lang.String name, OutputConfiguration configuration)
          Sets the output configuration registered under the specified name.
 void setPropertyConfiguration(java.lang.String name, PropertyConfiguration configuration)
          Sets the property configuration registered under the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaConfiguration

public MediaConfiguration(IContentFactory contentFactory,
                          IInputGrammarFactory inputFactory)
Creates a new MediaConfiguration.

Parameters:
contentFactory - The content factory to use.
inputFactory - The input factory to use.
Method Detail

getOutputConfigurationNames

public java.lang.String[] getOutputConfigurationNames()
Returns the names of the currently registered output configurations.

Returns:
The names of the currently registered output configurations.

getOutputConfiguration

public OutputConfiguration getOutputConfiguration(java.lang.String name)
Returns the output configuration registered under the specified name or null if no such configuration is registered.

Parameters:
name - The name of the configuration to find.
Returns:
The output configuration registered under the specified name or null if no such configuration is registered.

setOutputConfiguration

public void setOutputConfiguration(java.lang.String name,
                                   OutputConfiguration configuration)
Sets the output configuration registered under the specified name.

Parameters:
name - The name to register the configuration under.
configuration - The configuration to register or null to remove the specified configuration.

getInputConfigurationNames

public java.lang.String[] getInputConfigurationNames()
Returns the names of the currently registered input configurations.

Returns:
The names of the currently registered input configurations.

getInputConfiguration

public InputConfiguration getInputConfiguration(java.lang.String name)
Returns the input configuration registered under the specified name or null if no such configuration is registered.

Parameters:
name - The name of the configuration to find.
Returns:
The input configuration registered under the specified name or null if no such configuration is registered.

setInputConfiguration

public void setInputConfiguration(java.lang.String name,
                                  InputConfiguration configuration)
Sets the input configuration registered under the specified name.

Parameters:
name - The name to register the configuration under.
configuration - The configuration to register or null to remove the specified configuration.

getPropertyConfigurationNames

public java.lang.String[] getPropertyConfigurationNames()
Returns the names of the currently registered property configurations.

Returns:
The names of the currently registered property configurations.

getPropertyConfiguration

public PropertyConfiguration getPropertyConfiguration(java.lang.String name)
Returns the property configuration registered under the specified name or null if no such configuration is registered.

Parameters:
name - The name of the configuration to find.
Returns:
The property configuration registered under the specified name or null if no such configuration is registered.

setPropertyConfiguration

public void setPropertyConfiguration(java.lang.String name,
                                     PropertyConfiguration configuration)
Sets the property configuration registered under the specified name.

Parameters:
name - The name to register the configuration under.
configuration - The configuration to register or null to remove the specified configuration.

load

public void load(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Loads the configuration information from the specified XML element.

Specified by:
load in interface IConfiguration
Parameters:
configurationElement - The element to load the configuration from.

save

public void save(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Saves the configuration information into the supplied XML element.

Specified by:
save in interface IConfiguration
Parameters:
configurationElement - The element to save the configuration to.